package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.support.RequestContext;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/i18n")
public class I18nController {

    @RequestMapping("/f")
    public String f(HttpServletRequest request){
        System.out.println("I18nController.f()");

        RequestContext requestContext=new RequestContext(request);

        String a=requestContext.getMessage("a");

        System.out.println("a = " + a);

        return "i18n";
    }
}
